package api02b;

import java.util.HashSet;
import java.util.Set;

public class SetDemo1 {
    public static void main(String[] args) {
        Set<Point> s = new HashSet<>();
        s.add(new Point(1,2));
        s.add(new Point(2,3));
        s.add(new Point(5,2));
        s.add(new Point(3,9));
        System.out.println(s);
        s.add(new Point(1,2));

        System.out.println(s);

        Point p = new Point(2,3);
        boolean b = s.add(p);
        System.out.println(b);


    }
}
